[VERSN2]
combobox "Install" "Uninstall" "Select"

"Install"
stop_errors false
speedreflect auto
unlock_memory all

if collection_exists FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
// do nothing
end

import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\SLRMOSS_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\SLRMOSS_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\SLRMOSS_DB.bin

add_or_update_string LANGUAGES\ENGLISH_FRONTEND.BIN STRBlocks Frontend AUTO CARNAME_MCLAREN_SLRMOSS "Mercedes-Benz SLR Stirling Moss"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SIDE_MIRROR_1 "STYLE 1"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_01 "CUSTOM 1"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_02 "CUSTOM 2"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_03 "CUSTOM 3"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_01_CF "CUSTOM 1 CF"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_02_CF "CUSTOM 2 CF"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO PART_SPOILER_CUSTOM_03_CF "CUSTOM 3 CF"

add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_SLRMOSS Textures\SECONDARY_LOGO_SLRMOSS.dds

if directory_exists absolute CARS\SLRMOSS
do // do nothing
else
create_folder absolute CARS\SLRMOSS

move_file override relative absolute Model\SLRMOSS\GEOMETRY.BIN CARS\SLRMOSS\GEOMETRY.BIN
move_file override relative absolute Model\SLRMOSS\TEXTURES.BIN CARS\SLRMOSS\TEXTURES.BIN

end

"Uninstall"
stop_errors false
speedreflect auto
unlock_memory all

remove_string LANGUAGES\ENGLISH_FRONTEND.BIN STRBlocks Frontend CARNAME_MCLAREN_SLRMOSS
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SIDE_MIRROR_1
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_01
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_02
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_03
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_01_CF
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_02_CF
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global PART_SPOILER_CUSTOM_03_CF

remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_SLRMOSS

remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos SLRMOSS
remove_collection GLOBAL\GLOBALB.LZC Collisions SLRMOSS
remove_collection GLOBAL\GLOBALB.LZC DBModelParts SLRMOSS
erase_folder absolute CARS\SLRMOSS
end
